package com.mdx.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.List;

/**
 * 出库实体
 */
@TableName("t_gallery")
public class GalleryBean {
    /**
     * 主键
     */
    @TableId(value = "pk_galleryId",type = IdType.AUTO)
    private int galleryId;
    /**
     * 班级
     */
    @TableField("f_className")
    private String className;

    /**
     * 出库人 (这里的是用户真实姓名)
     */
    @TableField("f_outName")
    private String outName;

    /**
     * 出库时间
     */
    @TableField("f_outTime")
    private LocalDate outTime = LocalDate.now();

    /**
     *明细集合
     */
    @TableField(exist = false)
    private List<OutGalleryBean> list;

    @Override
    public String toString() {
        return "GalleryBean{" +
                "galleryId=" + galleryId +
                ", className='" + className + '\'' +
                ", outName='" + outName + '\'' +
                ", outTime=" + outTime +
                ", list=" + list +
                '}';
    }

    public int getGalleryId() {
        return galleryId;
    }

    public void setGalleryId(int galleryId) {
        this.galleryId = galleryId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getOutName() {
        return outName;
    }

    public void setOutName(String outName) {
        this.outName = outName;
    }

    public List<OutGalleryBean> getList() {
        return list;
    }

    public void setList(List<OutGalleryBean> list) {
        this.list = list;
    }

    public LocalDate getOutTime() {
        return outTime;
    }

    public void setOutTime(LocalDate outTime) {
        this.outTime = outTime;
    }



    public GalleryBean() {
    }

    public GalleryBean(int galleryId) {
        this.galleryId = galleryId;
    }
}
